﻿package cn.valorin.command.sub;

import static cn.valorin.configuration.languagefile.MessageSender.sm;
import cn.valorin.Main;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class MainHelp{

	public static boolean onCommand(CommandSender sender, Command command, String label, String[] args)
	{
	  Player p = null;
	  if (sender instanceof Player)
	  { p = (Player)sender; }
	  sm("", p);
      sender.sendMessage("§b§lDuan§3§l§oWu §c§l端午节插件§cBy-Valorin §d§l"+Main.getInstance().getDescription().getVersion());
	  sender.sendMessage("§e=============================================");
	  sm("", p);
	  sm("  &f&l>> &6/duanwu help(h) &f查看玩家帮助",p,false);
	  sm("  &f&l>> &6/duanwu adminhelp(ah) &f查看管理员帮助",p,false);
	  sm("", p);
	  sender.sendMessage("§e=============================================");
	  sm("", p);
	  return true;
	}
}
